package top.canyue.word_range_service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.canyue.word_range.pojo.dto.EventDto;
import top.canyue.word_range.pojo.dto.PageDTO;
import top.canyue.word_range.pojo.po.Event;
import top.canyue.word_range.pojo.query.EventQuery;
import top.canyue.word_range.pojo.vo.EventVo;
import top.canyue.word_range.result.Result;

public interface EventService extends IService<Event> {
    Result<EventVo> addEvent(EventDto event);

    Result<EventVo> updateEvent(EventDto event);

    Result<EventVo> getEventById(String id);

    Result<EventVo> deleteEventById(Long id);

    // 获取列表
    PageDTO<EventVo> getEventList(EventQuery query);

    Result<EventVo> participateEvent(String eventId);

    Result<EventVo> finishEvent(String eventId);
}
